package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Cart;
import org.csu.mypetstore.domain.Item;

public interface CartDAO {
    Cart getCartByUserId(String userId);
    public void removeCartByUserId(String userId);
    public void removeItemByUserIdAndItemId(String userId, String itemid);
    public void addItem(String userId, Item item);
    public void incrementQuantityByItemId(String userId, Item item);
    public void decrementQuantityByItemId(String userId, Item item);
    public void updateCartByUserId(String userId, Cart cart);
    public boolean containsItem(String userId, Item item);
    public int getQuantityById(String Pid,String Uid);

}
